package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserInfoXmlMapper {
    Integer insert(UserInfo userInfo);

    Integer delete(Integer id);

    Integer update(UserInfo userInfo);

    List<UserInfo> selectAllUser();

    List<UserInfo> selectAllUser2();

    /**
     * 动态SQL
     */
    Integer insertUserInfoByCondition(UserInfo userInfo);

    Integer deleteUserInfoByCondition(UserInfo userInfo);

    Integer updateUserInfoByCondition(UserInfo userInfo);

    List<UserInfo> getUserInfoByCondition(UserInfo userInfo);

    Integer batchDelete(List<Integer> ids);

    List<UserInfo> selectUserInfoAll();
}
